SCALA_VERSION?=2.13
KAFKA_VERSION?=2.8.1
IMAGE_NAME?=aiolibs/kafka
IMAGE_TAG=$(IMAGE_NAME):$(SCALA_VERSION)_$(KAFKA_VERSION)

docker-build:
	@echo "Building docker image $(IMAGE_TAG)"
	docker build -t $(IMAGE_TAG) --build-arg SCALA_VERSION=$(SCALA_VERSION) --build-arg KAFKA_VERSION=$(KAFKA_VERSION) .

docker-push:
	@echo "Pushing docker image $(IMAGE_TAG)"
	docker push $(IMAGE_TAG)

.PHONY: docker-build
